package cn.fsw.pethome.user.mapper;

import cn.fsw.pethome.user.domain.User;
import cn.fsw.pethome.base.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author fsw
 * @since 2022-10-13
 */
@Repository
public interface UserMapper extends BaseMapper<User> {
    User selectByPhoneUser(String phone);

    User selectByEmailUser(String email);

    // 判断当前手机号是否被微信绑定
    User selectByPhoneUserAndWXUser(String phone);

    User selectByLoginId(Long id);
}
